


struct  Rupee
{ float  value;
	 float Dollarconvert(){return value/98.17;}
	 float Poundconvert(){return value/149.07;}
	 float Euroconvert(){return value/126.77;}
};

struct Euro
{ 
		float value;
	   float Dollarconvert(){return value * 1.29;}
	  float Rupeeconvert(){return value * 126.77;}
	  float Poundconvert (){return value / 0.85;}
};

struct Pound
{
	float value;
		float Dollarconvert(){return value*1.52;}
		 float Rupeeconvert(){return value *149.07;}
		 float Euroconvert(){return value * 1.18;}
};

struct Dollar
{
	float value;
		 float Poundconvert(){return value/1.52;}
		 float Rupeeconvert(){return value * 98.17;}
		float Euroconvert(){return value/1.29;}
};
struct currency
{
   float value;
   float digit;
	float ans;
   float ans = value * digit;
      /*float currencyto(){return value *digit;}
     	/*float Poundconvert(){return value*rate;}
		 float Rupeeconvert(){return value * rate;}
		float Euroconvert(){return value*rate;}
      float Dollarconvert(){return value*rate;}*/
};

struct Converter
	
{
   float amount;
   float rate;
   Rupee rupee;
	Euro euro;
	Pound pound; 	
	Dollar dollar;
	currency curr;
   


   void createRupees()
		 {
         rupee.value = amount;  
 
       euro.value= rupee.Euroconvert();
       pound.value=rupee.Poundconvert();
       dollar.value=rupee.Dollarconvert();

       }
	
	void createEuro()
			{	
               euro.value = amount;
               dollar.value = euro.Dollarconvert();
		         rupee.value = euro.Rupeeconvert();
               pound.value = euro.Poundconvert();
          }
	void createPound()
		{
			pound.value = amount;
         dollar.value = pound.Dollarconvert();
		   rupee.value = pound.Rupeeconvert();
         euro.value= pound.Euroconvert();
      }
       


	void createDollar()
		{
			dollar.value = amount;
         pound.value = dollar.Poundconvert();
		   rupee.value = dollar.Rupeeconvert();
         euro.value= dollar.Euroconvert();
			
       }
   void createCurrency()
      {
         curr.value = amount;
        	curr.digit = rate;
			/*curr.ans = curr.value * curr.digit;
         /*pound.value=curr.Poundconvert();
		   rupee.value=curr.Rupeeconvert();
		   euro.value=curr.Euroconvert();
         dollar.value=curr.Dollarconvert();*/
	   }
};
















































